# -*- codeing = utf-8 -*-
# @Time : 2020/8/3 15:25
# @Author : haos
# @File : settings.py
# @Software : PyCharm


class Settings:

    def __init__(self):
        self.url = 'http://www.customs.gov.cn/customs/302249/302274/302277/index.html'
        self.mongo_driver = 'mongodb://localhost:27017/'
        self.chrome_driver = r"C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe"
        self.prefs = {'useAutomationExtension': False,
                      'excludeSwitches': ['enable-automation'],
                      'profile.default_content_settings.popups': 0,
                      'download.default_directory': 'E:\\python_work\\smr\\download'}
        self.addScript = {"source": """
                    Object.defineProperty(navigator, 'webdriver', {
                    get: () => undefined
                    })
                    """}
